public class Dog extends Animal implements IRunnable{
    public Dog(int age, String name) {
        super(age, name);
    }
    int i = 20;
    public void show(){
        System.out.println(i);
        System.out.println(super.i);
    }

    /*public Dog(int age, String name, int i) {
        super(age, name);
        this.i = i;
    }*/

    @Override
    public void run() {
        System.out.println(this.name +"在跑步");
    }

    @Override

    public void eat(){
        System.out.println(this.name +"在吃狗粮");
    }
}
